package com.javasvip.web.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * 用户服务
 */
@FeignClient(value = "lagou-cloud-gateway",fallback = CodeFallback.class,path = "/code")
public interface CodeService {
    /**
     * 登录
     * @param email
     * @param password
     * @return
     */
    @GetMapping("/login/{email}/{password}")
    public Integer findDefaultResumeState(@PathVariable String email, @PathVariable String password);
}
